.PT File Format
The .PT (Place-Text) format is used to place 3D text (labels) with user adjustable font and alignment.
The format is:
-
Lines beginning with "#" are comments
-
Lines beginning with "LINEFONT" are font specification lines specifically associated with single line text.
-
LINEFONT, height, justification, azimuth, inclination, roll, red, green, blue, curve tolerance, font flags (bold is ignored)
-
NOTE: There is no specification of the Font to be used, because EVS includes its own Unicode Line Font which supports most worldwide languages.
-
-
Lines beginning with "TRUETYPE" are font specification lines specifically associated with TrueType Fonts.
-
TRUETYPE, height, justification, azimuth, inclination, roll, red, green, blue, curve tolerance, outlined ("True"/"False"), depth, bevel, font flags, font name
-
-
Lines beginning with "FORWARDFACING" font specification lines specifically associated with Forward Facing Fonts.
-
FORWARDFACING, red, green, blue, font flags
-
NOTE: Forward Facing font specifications other than color are module wide. Therefore, the .PT files do not contain the Justification or Font specification options (including size).
-
-
The lines containing each TEXT STRING to be displayed have five columns of information:
-
-
X coordinate
-
Y coordinate
-
Z coordinate
- Explode_ID: This is equivalent to the (Stratigraphic) cell data "Layer" information. The uppermost ID (layer) is ZERO (0) and does not move. If you don't want your text to move with changing Explode Distance, use a value of ZERO. Otherwise, by assigning an appropriate ID value your text string can move properly with both stratigraphic layers or lithologic materials as they are exploded.
-
Text: Everything on the line after Explode_ID (and any trailing spaces) is the text to be placed at the above coordinate, and must be in quotes.
-
-
Blank lines anywhere in the file are ignored.
-
Lines beginning with "END" specify the end of the file. Using END is optional, but if you want to have any notes or comments after the last command or data line, precede it with a line using the "END" statement.
Lines beginning with "FONT" are legacy font specification lines that we suggest you avoid. However, when we read a legacy file, we attempt to migrate it to the new options.
Below is an example .PT file and the output it creates:
TRUETYPE, 20.000000, LC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, False, 0.200000, 5.000000, None, "Noto Sans"
0.000000, 300.000000, 0.000000, 0, "TTF"
TRUETYPE, 20.000000, LC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, False, 0.200000, 5.000000, Bold, "Noto Sans"
250.000000, 300.000000, 0.000000, 0, "TTF Bold"
TRUETYPE, 20.000000, LC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, False, 0.200000, 5.000000, Italic, "Noto Sans"
500.000000, 300.000000, 0.000000, 0, "TTF Italic"
TRUETYPE, 20.000000, LC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, False, 0.200000, 5.000000, Bold Italic, "Noto Sans"
750.000000, 300.000000, 0.000000, 0, "TTF Bold Italic"
TRUETYPE, 20.000000, UC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, True, 0.200000, 5.000000, None, "Noto Sans"
0.000000, 200.000000, 0.000000, 0, "Outlined"
TRUETYPE, 20.000000, UC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, True, 0.200000, 5.000000, Bold, "Noto Sans"
250.000000, 200.000000, 0.000000, 0, "Outlined Bold"
TRUETYPE, 20.000000, UC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, True, 0.200000, 5.000000, Italic, "Noto Sans"
500.000000, 200.000000, 0.000000, 0, "Outlined Italic"
TRUETYPE, 20.000000, UC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, True, 0.200000, 5.000000, Bold Italic, "Noto Sans"
750.000000, 200.000000, 0.000000, 0, "Outlined Bold Italic"
TRUETYPE, 20.000000, UC, 180.000000, 90.000000, 45.000000, 0.847059, 0.847059, 0.858824, 0.050000, False, 0.200000, 5.000000, Bold, "Noto Sans"
250.000000, 400.000000, 0.000000, 0, "TTF Bold at 45° roll"
LINEFONT, 20.000000, UC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, None
0.000000, 100.000000, 0.000000, 0, "Singleline"
LINEFONT, 20.000000, UC, 180.000000, 90.000000, 0.000000, 0.847059, 0.847059, 0.858824, 0.050000, Italic
500.000000, 100.000000, 0.000000, 0, "Singleline Italic"
FORWARDFACING, 0.847059, 0.847059, 0.858824, None
0.000000, 0.000000, 0.000000, 0, "ForwardFacing"